
// F. Chaxel 2010

#ifndef MOTORS_H
#define MOTORS_H


#include "I2c.h"

class Motors:public Object
{
	
	private :
		static Motors* _instance;
		I2C *i2c;

	public:
		Motors();
		virtual ~Motors();
		void SetSpeed (unsigned int Left, unsigned int Right);
		void Stop();
		void GetPos(long *Left, long *Right);
		int GetBattery();
		void GetMotorsCurrent(unsigned char *Left, unsigned char *Right);
		void InitPosition();
};

#endif
